package com.app.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Timestamp;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 积分商品
 * @author 16693103420
 * @since 2024-02-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_integral_goods")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class IntegralGoodsModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//积分商品表ID
    private String goodsFace;//商品封面
    private String fileId;//商品轮播图
    private String name;//商品名称
    private Double integral;//积分商品积分
    private Integer number;//积分商品数量
    private String goodsDetails;//商品详情
    private Integer status;//商品详情
    @TableField(exist = false)
    private Integer addressId;
    @TableField(exist = false)
    private List<String> urlList;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
    @TableField(exist = false)
    private List<FileModel> file;
    private String areaId;//所属地区id
    private String cityId;//所属地区id
    private String areaCode;//所属地区id
    @TableField(exist = false)
    private List<String> value;//所属地区id
    @TableField(exist = false)
    private String areaText;//所属地区转文字

    private Integer applyType;
}
